package com.tcfvic.client.pojos;

// Generated 30/05/2010 9:35:35 PM by Hibernate Tools 3.1.0.beta4

import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Employmentstatus generated by hbm2java
 */
@Entity
@Table(name = "employmentstatus", uniqueConstraints = {})
public class Employmentstatus implements java.io.Serializable {

	// Fields

	private EmploymentstatusId id;
	private Person person;
	private String empstatus;
	private String jobNo;
	private String jobRole;
	private String nameOfEmployer;
	private String suburb;
	private String state;
	private String sizeOfCompany;
	private String industry;
	private Date startDate;
	private Date finishDate;
	private String typeOfWork;
	private String hoursOfWork;
	private String noHoursEmployedWeekly;
	private String needWantMoreHours;
	private String workingConditions;
	private String unionMember;
	private String reasonforleaving;

	// Constructors

	/** default constructor */
	public Employmentstatus() {
	}

	/** minimal constructor */
	public Employmentstatus(EmploymentstatusId id, Person person) {
		this.id = id;
		this.person = person;
	}

	/** full constructor */
	public Employmentstatus(EmploymentstatusId id, Person person,
			String empstatus, String jobNo, String jobRole,
			String nameOfEmployer, String suburb, String state,
			String sizeOfCompany, String industry, Date startDate,
			Date finishDate, String typeOfWork, String hoursOfWork,
			String noHoursEmployedWeekly, String needWantMoreHours,
			String workingConditions, String unionMember, String reasonforleaving) {
		this.id = id;
		this.person = person;
		this.empstatus = empstatus;
		this.jobNo = jobNo;
		this.jobRole = jobRole;
		this.nameOfEmployer = nameOfEmployer;
		this.suburb = suburb;
		this.state = state;
		this.sizeOfCompany = sizeOfCompany;
		this.industry = industry;
		this.startDate = startDate;
		this.finishDate = finishDate;
		this.typeOfWork = typeOfWork;
		this.hoursOfWork = hoursOfWork;
		this.noHoursEmployedWeekly = noHoursEmployedWeekly;
		this.needWantMoreHours = needWantMoreHours;
		this.workingConditions = workingConditions;
		this.unionMember = unionMember;
		this.reasonforleaving = reasonforleaving;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "id", column = @Column(name = "id", unique = false, nullable = false, insertable = true, updatable = true)),
			@AttributeOverride(name = "personId", column = @Column(name = "Person_id", unique = false, nullable = false, insertable = true, updatable = true)) })
	public EmploymentstatusId getId() {
		return this.id;
	}

	public void setId(EmploymentstatusId id) {
		this.id = id;
	}

	@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
	@JoinColumn(name = "Person_id", unique = false, nullable = false, insertable = false, updatable = false)
	public Person getPerson() {
		return this.person;
	}

	public void setPerson(Person person) {
		this.person = person;
	}

	@Column(name = "empstatus", unique = false, nullable = true, insertable = true, updatable = true, length = 45)
	public String getEmpstatus() {
		return this.empstatus;
	}

	public void setEmpstatus(String empstatus) {
		this.empstatus = empstatus;
	}

	@Column(name = "jobNo", unique = false, nullable = true, insertable = true, updatable = true, length = 45)
	public String getJobNo() {
		return this.jobNo;
	}

	public void setJobNo(String jobNo) {
		this.jobNo = jobNo;
	}

	@Column(name = "jobRole", unique = false, nullable = true, insertable = true, updatable = true, length = 450)
	public String getJobRole() {
		return this.jobRole;
	}

	public void setJobRole(String jobRole) {
		this.jobRole = jobRole;
	}

	@Column(name = "nameOfEmployer", unique = false, nullable = true, insertable = true, updatable = true, length = 450)
	public String getNameOfEmployer() {
		return this.nameOfEmployer;
	}

	public void setNameOfEmployer(String nameOfEmployer) {
		this.nameOfEmployer = nameOfEmployer;
	}

	@Column(name = "suburb", unique = false, nullable = true, insertable = true, updatable = true, length = 45)
	public String getSuburb() {
		return this.suburb;
	}

	public void setSuburb(String suburb) {
		this.suburb = suburb;
	}

	@Column(name = "state", unique = false, nullable = true, insertable = true, updatable = true, length = 45)
	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	@Column(name = "sizeOfCompany", unique = false, nullable = true, insertable = true, updatable = true, length = 45)
	public String getSizeOfCompany() {
		return this.sizeOfCompany;
	}

	public void setSizeOfCompany(String sizeOfCompany) {
		this.sizeOfCompany = sizeOfCompany;
	}

	@Column(name = "industry", unique = false, nullable = true, insertable = true, updatable = true, length = 450)
	public String getIndustry() {
		return this.industry;
	}

	public void setIndustry(String industry) {
		this.industry = industry;
	}

	@Column(name = "startDate", unique = false, nullable = true, insertable = true, updatable = true, length = 19)
	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	@Column(name = "finishDate", unique = false, nullable = true, insertable = true, updatable = true, length = 19)
	public Date getFinishDate() {
		return this.finishDate;
	}

	public void setFinishDate(Date finishDate) {
		this.finishDate = finishDate;
	}

	@Column(name = "typeOfWork", unique = false, nullable = true, insertable = true, updatable = true, length = 45)
	public String getTypeOfWork() {
		return this.typeOfWork;
	}

	public void setTypeOfWork(String typeOfWork) {
		this.typeOfWork = typeOfWork;
	}

	@Column(name = "hoursOfWork", unique = false, nullable = true, insertable = true, updatable = true, length = 45)
	public String getHoursOfWork() {
		return this.hoursOfWork;
	}

	public void setHoursOfWork(String hoursOfWork) {
		this.hoursOfWork = hoursOfWork;
	}

	@Column(name = "noHoursEmployedWeekly", unique = false, nullable = true, insertable = true, updatable = true, length = 45)
	public String getNoHoursEmployedWeekly() {
		return this.noHoursEmployedWeekly;
	}

	public void setNoHoursEmployedWeekly(String noHoursEmployedWeekly) {
		this.noHoursEmployedWeekly = noHoursEmployedWeekly;
	}

	@Column(name = "needWantMoreHours", unique = false, nullable = true, insertable = true, updatable = true, length = 45)
	public String getNeedWantMoreHours() {
		return this.needWantMoreHours;
	}

	public void setNeedWantMoreHours(String needWantMoreHours) {
		this.needWantMoreHours = needWantMoreHours;
	}

	@Column(name = "workingConditions", unique = false, nullable = true, insertable = true, updatable = true, length = 45)
	public String getWorkingConditions() {
		return this.workingConditions;
	}

	public void setWorkingConditions(String workingConditions) {
		this.workingConditions = workingConditions;
	}

	@Column(name = "unionMember", unique = false, nullable = true, insertable = true, updatable = true, length = 45)
	public String getUnionMember() {
		return this.unionMember;
	}

	public void setUnionMember(String unionMember) {
		this.unionMember = unionMember;
	}
	@Column(name = "reasonforleaving", unique = false, nullable = true, insertable = true, updatable = true, length = 450)
	public String getReasonforleaving() {
		return this.reasonforleaving;
	}
	
	public void setReasonforleaving(String reasonforleaving) {
		this.reasonforleaving = reasonforleaving;
	}

	
}
